<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>牧心农业</title>
    <link rel="stylesheet" type="text/css" href="/static/css/eui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/mobile.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/iconfont.css" />
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/swipe.js"></script>
    <script src="/static/js/doT.min.js"></script>
    <script src="/static/js/func.js"></script>
</head>
<body>
    <div class="content margin_top">
        <header class="header fixed_top bg_mx_green"></header>
        <div class="inspection"></div>
    </div>
    <div class="all_swipe swipe hide">
        <div class='swipe-wrap'></div>
        <ul class="position"></ul>
        <div class="swipe_close">&times;</div>
    </div>
    <script type="text/template" charset="utf-8" id='swipe_template'></script>
    <script type="text/template" charset="utf-8" id='inspection_template'></script>
    <script>
        // 详情模版
            var inspection = <{$detail}>;console.log(inspection)
            loadinspection(inspection)
            $(".row_one").css("height",(($(window).width()-45)*0.7/4)+"px")
        // 头部
            loadheadbar("巡检记录",1)
        // 预览轮播
            $(".content").on("click",".row_one",function(){
                var imgs = inspection[$(this).data("str")];
                $(".swipe").show();
                $("body").scrollTop(0).addClass("row")
                $(window).on('touchmove', function (e) {
                    e.preventDefault();
                });
                loadswipe(imgs,$(this).data("i"),function(){
                    var h = ($(window).height() - $(".swipe_e:first-child").height())/2;
                    $(".swipe_e").css("margin-top",h+"px")
                })
            })
            $(".swipe_close").click(function(){
                $(".swipe").hide()
                $("body").removeClass("row")
                $(window).unbind('touchmove');
            })
    </script>
</body>
</html>
